@import "ui-variables";

.nuclide-ui-hunk-diff-text-editor {
  background-color: @base-background-color;
  padding: 0.5em;
}

.nuclide-ui-file-changes:not(:first-child) {
  margin-top: 4 * @component-padding;
}

.nuclide-ui-file-changes-additions-deletion-count {
  margin-bottom: 0.5em;
}

.nuclide-ui-hunk-diff-spacer {
  height: 1em;
}

.nuclide-ui-file-changes-item {
  font-size: 12px;
}

/* BEGIN Keep in sync with nuclide-diff-view/styles: */
// Default colors for themes that do not specify any.
@add-color: #0c0;
@add-color: @text-color-success;

@remove-color: #c00;
@remove-color: @text-color-error;

@blendAmount: 10%;

atom-text-editor {

  .nuclide-ui-hunk-diff-insert .region {
    @add-color-faded: fade(@add-color, @blendAmount);
    border-left-style: solid;
    border-left-color: @add-color;
    border-left-width: 1px;
    background-color: @add-color-faded;
  }

  .nuclide-ui-hunk-diff-delete .region {
    @remove-color-faded: fade(@remove-color, @blendAmount);
    border-left-style: solid;
    border-left-color: @remove-color;
    border-left-width: 1px;
    background-color: @remove-color-faded;
  }
}
/* END Keep in sync with nuclide-diff-view/styles: */
